<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue-2.4.0.js"></script>
    <style>

    </style>
</head>

<body>
    <div id="app">
        <div class="inner" @click="div">
            <input type="button" value="1111" @click.stop="button">
        </div>
        <a href="http://www.baidu.com" @click.prevent="link">go baidu</a>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {},
            methods: {
                div() {
                    console.log(" div ")
                },
                button() {
                    console.log("button ")
                },
                link() {
                    console.log("link ")

                }
            }
        });
    </script>
</body>

</html>